package com.woniuxy.creditsystem.systemmag.service.impl;

import com.woniuxy.creditsystem.common.bean.MenuInfo;
import com.woniuxy.creditsystem.common.mapper.MenuMapper;
import com.woniuxy.creditsystem.systemmag.service.IMenuService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 获取所有的菜单名字
 * @author hejie
 */
@Service
@Transactional(readOnly = true)
public class MenuServiceImpl implements IMenuService {

    @Resource
    private MenuMapper menuMapper;

    /**
     * 获取所有的菜单名字
     * @author hejie
     * @return
     */
    @Override
    public List<MenuInfo> findAll() {
        return menuMapper.findAll();
    }
}
